import { comsType } from "../../../../../constants/form";
import {WeaLocaleProvider} from "ecCom";
const getLabel = WeaLocaleProvider.getLabel;

const { TEXT } = comsType;

export default {
  title: getLabel('502447','地址'),
  desc: '',
  required: '0',
  hidden: '0',
  value: '',
  placeholder: '',
  complex: ['province', 'city', 'district', 'detail'], // 复合的子字段
  province: {
    value: '',
    name: getLabel('643','省'),
    required: '1',
    type: TEXT,
    config: {
      required: '0',
      title: getLabel('643','省'),
      labelTitleID: '643',
    }
  },
  city: {
    value: '',
    name: getLabel('500619','市'),
    required: '1',
    type: TEXT,
    config: {
      required: '0',
      title: getLabel('500619','市'),
      labelTitleID: '500619',
    }
  },
  district: {
    value: '',
    name: getLabel('502472','区'),
    required: '1',
    type: TEXT,
    config: {
      required: '0',
      title: getLabel('502472','区'),
      labelTitleID: '502472',
    }
  },
  detail: {
    value: '',
    name: getLabel('389220','详细地址'),
    required: '1',
    type: TEXT,
    config: {
      required: '0',
      title: getLabel('389220','详细地址'),
      labelTitleID: '389220',
    }
  }
};